FactoryGirl.define do
  factory :user do
    sequence(:username) { |n| "user#{n}" }
    name 'user'
    age 18
  end

  factory :unique_user, class: User do
    username 'user'
    name 'user'
    age 18
  end
end
